package org.example.entity;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @BelongsProject: StudentSystem
 * @BelongsPackage: org.example.entity
 * @Author: StarBonny
 * @CreateTime: 2024-12-22  22:58
 * @Description: 用户实体对象
 * @Version: 1.0
 */
public class User {
    private int userId;
    private String name;
    private String pass;
    private int classRoleIdFk;
    private Date submitDate;
    private int status;

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", name='" + name + '\'' +
                ", pass='" + pass + '\'' +
                ", classRoleIdFk=" + classRoleIdFk +
                ", submitDate=" + submitDate +
                ", status=" + status +
                '}';
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public int getClassRoleIdFk() {
        return classRoleIdFk;
    }

    public void setClassRoleIdFk(int classRoleIdFk) {
        this.classRoleIdFk = classRoleIdFk;
    }

    public Date getSubmitDate() {
        return submitDate;
    }

    public void setSubmitDate(Date submitDate) {
        this.submitDate = submitDate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public User(int userId, String name, String pass, int classRoleIdFk, Date submitDate, int status) {
        this.userId = userId;
        this.name = name;
        this.pass = pass;
        this.classRoleIdFk = classRoleIdFk;
        this.submitDate = submitDate;
        this.status = status;
    }
}
